import Organization.*;
import Staff.*;

public class Main {
    public static void main(String[] args) {
        StaffList fullTimeStaffList = new StaffList();
        fullTimeStaffList.addStaff(new FulltimeStaff("a", 5000, 45));
        fullTimeStaffList.addStaff(new FulltimeStaff("b", 4000, 36));
        fullTimeStaffList.addStaff(new FulltimeStaff("c", 5000, 56));

        Department financeDepartment = new FinanceDepartment();
        Department hrDepartment = new HRDepartment();

        System.out.println("财务报告");
        fullTimeStaffList.accept(financeDepartment);

        System.out.println("人力资源报告");
        fullTimeStaffList.accept(hrDepartment);

        StaffList partTimeStaffList = new StaffList();
        partTimeStaffList.addStaff(new ParttimeStaff("d", 100, 72));
        partTimeStaffList.addStaff(new ParttimeStaff("e", 80, 60));

        System.out.println("财务报告");
        partTimeStaffList.accept(financeDepartment);

        System.out.println("人力资源报告");
        partTimeStaffList.accept(hrDepartment);
    }
}
